
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/Tools/BinaryToText)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/Tools/ShaderCompiler)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/Tools/CopyDirectory)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/Tools/ReflectionTool)

add_custom_target(AllEngineModules)

#search Modules and add plugin target to dependencies and link to target
file(GLOB ModuleDirectories ${CMAKE_CURRENT_LIST_DIR}/Modules/*)

foreach(ModuleDirectory ${ModuleDirectories})
  if(IS_DIRECTORY ${ModuleDirectory})
    get_filename_component(ModuleName ${ModuleDirectory} NAME)
    message("ModuleName:" ${ModuleName})
    add_subdirectory(${ModuleDirectory})
    add_dependencies(AllEngineModules ${ModuleName})
  endif()
endforeach()
